<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>HTML 5 CANVAS游戏开发实战_1.6.2 静态类示例Demo</title>
	</head>
	<body>
		<p>输出内容请查看控制台输出。</p>
		<p>注意：在使用静态类的时候，就无需创建新的实例了，可以直接用“类名.属性或者方法名”访问。</p>
		<script type="text/javascript">
			var StaticClass = function(){};
			
			StaticClass.name = "StaticName";
			
			StaticClass.Sum = function(value1,value2){
				return value1 + value2;
			};
			
			console.log(StaticClass.name);
			console.log("========================");
			console.log(StaticClass.Sum(34,38));
		</script>
	</body>
</html>
